<template>
  <div class="page" v-if="data.title!=undefined">
    <!-- box -->
    <div class="testBox" style="margin-top:15px">
      <div class="item-cell">
        <div class="tit">考试名称：</div>
        <div class="lf">{{data.title}}</div>
      </div>
      <div class="item-cell">
        <div class="tit">测试结果：</div>
        <div class="lf"><b class="jg">{{data.score}}</b></div>
      </div>
    </div>
    <!-- btn -->
    <div class="btnBox">
      <router-link to="/list1" class="a1">关闭</router-link>
    </div>
  </div>
</template>

<script>
import { Dialog } from "vant";
export default {
  data() {
    return {
      data:{}
    };
  },
  mounted: function() {
    maxusJSB.tojson({title:"测试报告",left:"关闭"})
    this.getData()
  },
  methods: {
   // 请求列表
    getData() {
      this.$http
        .post(
          "?key=&request=front&operation=finish-exam&client=1&by=admin&answer="+this.$route.query.answer+"&operate=next&questionId="+this.$route.query.questionId,{user_id:this.getUserID,id:this.$route.query.id}
        )
        .then(response => {
          if (response.ret==1) {
            this.data = response.data;
          }
        });
    },
  }
};
</script>

<style>
</style>